//
//  main.m
//  linux编程
//
//  Created by 黄辉 on 17/3/20.
//  Copyright © 2017年 黄辉. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "more.h"
int main(int argc, const char * argv[]) {
    @autoreleasepool {
        // insertode here...
        FILE *fp;
        if (argc == 1) {
            do_more(stdin);
        }
        else
            while (-- argc) {
                if ((fp = fopen(* ++ argv,"r")) != NULL) {
                    do_more(fp);
                    fclose(fp);
                    
                }
            }
    }
    return 0;
}
